package com.bitcola.security.activity.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@Table(name = "ag_admin_v1.mining_log")
@AllArgsConstructor
@NoArgsConstructor
public class MiningLog {
        @Column(name = "id")

        @Id
    String id;
        @Column(name = "time")

        Date time;
        @Column(name = "user_id")

        String userId;
        @Column(name = "type")

        String  type;
        @Column(name = "coin_code")

        String coinCode;
        @Column(name = "amount")

        BigDecimal amount;

}
